import request from '@/utils/request'

// 查询库存交易记录列表
export function listStockTransactionRecord(query) {
  return request({
    url: '/core/StockTransactionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询库存交易记录详细
export function getStockTransactionRecord(id) {
  return request({
    url: '/core/StockTransactionRecord/' + id,
    method: 'get'
  })
}

// 新增库存交易记录
export function addStockTransactionRecord(data) {
  return request({
    url: '/core/StockTransactionRecord',
    method: 'post',
    data: data
  })
}

// 修改库存交易记录
export function updateStockTransactionRecord(data) {
  return request({
    url: '/core/StockTransactionRecord',
    method: 'put',
    data: data
  })
}

// 删除库存交易记录
export function delStockTransactionRecord(id) {
  return request({
    url: '/core/StockTransactionRecord/' + id,
    method: 'delete'
  })
}
